package org.onejava.core.bean;

import java.util.Map;

import org.onejava.core.bean.imp.Entity;

public class AopEntity implements Entity{
	private String name;
	private Object obj;	
	private Map<String,Integer> map;
	public AopEntity(String name, Object obj,Map<String,Integer> map) {
		this.name = name;
		this.obj = obj;
		this.map = map;
		
	}
	public boolean checkInterface(String interfaceName){
		if(map.get(interfaceName)==null){
			return false;
		}		
		return true;
	}
	public String getName() {
		return name;
	}
	
	public Object getObj() {
		return obj;
	}
}
